package com.skillworld.webapp.model.tutorialservice;

import com.skillworld.webapp.model.tutorial.MarkedTutorial.Mark;

@SuppressWarnings("serial")
public class MarkAlreadyExistsException extends Exception 
{
    private long tutorialId;
    private Mark mark;
    
    
    public MarkAlreadyExistsException(long tutorialId, Mark mark)
    {
        super("The tutorial " +  tutorialId + " is already marked as " + mark);
        this.tutorialId = tutorialId;
        this.mark = mark;
    }
    
    
    public long getTutorialId()
    {
        return tutorialId;
    }
    
    public Mark getMark()
    {
        return mark;
    }
}
